import 'package:flutter_screenutil/flutter_screenutil.dart';

//ScreenSizeUtil,为了方便调用，简写
class su {
  //宽度
  static width(num width) {
    return width.w;
  }

  //高度
  static height(num height) {
    return height.h;
  }

  //字体大小
  static fontSize(num fontSize) {
    return fontSize.sp;
  }

  //全屏宽度
  static fullScreenWidth() {
    return 1.sw;
  }

  //全屏高度
  static fullScreenHeight() {
    return 1.sh;
  }

  //底部导航栏高度
  static double bottomBarHeight() {
    return ScreenUtil().bottomBarHeight;
  }

  //状态栏高度
  static double statusBarHeight() {
    return ScreenUtil().statusBarHeight;
  }

  //屏幕方向
  static orientation() {
    return ScreenUtil().orientation;
  }
}
